const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    // 定制主题
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    // If you are using less-loader@5 please spread the lessOptions to options directly
                    modifyVars: {
                        'primary-color': '#00cf8c',
                        'link-color': '#00cf8c',
                        'border-radius-base': '18px',
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },

    // 配置代理
    devServer: {
        proxy: {
            // 配置代理名字
            '/api': {
                // 代理地址
                target: 'https://course.myhope365.com',
                // 是否跨域
                changeOrigin: true,
                // 路径重写
                // pathRewrite: {
                //     '/^api': ''
                // }
            }
        }
    }
})
